package com.droowa.domain;

import java.io.Serializable;

public class PaymentManagement implements Serializable{
	
	private String accountNum;
	private String depositor;
	private String bank;
	
	
	public PaymentManagement() {
		super();
	}
	public PaymentManagement(String accountNum, String depositor, String bank) {
		super();
		this.accountNum = accountNum;
		this.depositor = depositor;
		this.bank = bank;
	}
	public String getAccountNum() {
		return accountNum;
	}
	public void setAccountNum(String accountNum) {
		this.accountNum = accountNum;
	}
	public String getDepositor() {
		return depositor;
	}
	public void setDepositor(String depositor) {
		this.depositor = depositor;
	}
	public String getBank() {
		return bank;
	}
	public void setBank(String bank) {
		this.bank = bank;
	}
	@Override
	public String toString() {
		return "PaymentManagement [accountNum=" + accountNum + ", depositor="
				+ depositor + ", bank=" + bank + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((accountNum == null) ? 0 : accountNum.hashCode());
		result = prime * result + ((bank == null) ? 0 : bank.hashCode());
		result = prime * result
				+ ((depositor == null) ? 0 : depositor.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PaymentManagement other = (PaymentManagement) obj;
		if (accountNum == null) {
			if (other.accountNum != null)
				return false;
		} else if (!accountNum.equals(other.accountNum))
			return false;
		if (bank == null) {
			if (other.bank != null)
				return false;
		} else if (!bank.equals(other.bank))
			return false;
		if (depositor == null) {
			if (other.depositor != null)
				return false;
		} else if (!depositor.equals(other.depositor))
			return false;
		return true;
	}

}
